<%@page import="net.sf.json.JSONArray"%>
<%@page import="java.util.List"%>
<%@page import="cn.sendto.rowmapper.IRowMapper"%>
<%@page import="cn.sendto.rowmapper.impl.dataTypeMapper"%>
<%@page import="cn.sendto.model.dataTypeModel"%>
<%@page import="cn.sendto.dbhelper.DBHelper"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
	String id = request.getParameter("id");
	DBHelper<dataTypeModel> helper = new DBHelper<dataTypeModel>();
	String sql = "select * from datatype where parentid = ?";
	IRowMapper<dataTypeModel> mapper = new dataTypeMapper();
	List<dataTypeModel> list =  helper.executeQuary(mapper, sql, id);
	if(list.size() > 0){
		out.print(JSONArray.fromObject(list).toString());
		out.flush();
	}
%>